package com.shxc.smarttrade.kvb.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.davemorrissey.labs.subscaleview.ImageSource;
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
import com.shxc.smarttrade.R;
import com.shxc.smarttrade.base.BaseActivity;

import org.xchris.view.annotation.ContentView;
import org.xchris.view.annotation.Event;
import org.xchris.view.annotation.ViewInject;

/**
 * 法律监管资质
 */
@ContentView(R.layout.activity_law)
public class LawActivity extends BaseActivity {
    @ViewInject(R.id.title_textview)
    TextView title_textview;
    @ViewInject(R.id.left_imageview)
    ImageView left_imageview;
    @ViewInject(R.id.imageview)
    SubsamplingScaleImageView imageview;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        title_textview.setText("法律监管资质");
        left_imageview.setVisibility(View.VISIBLE);

        imageview.setImage(ImageSource.resource(R.mipmap.fljgzz_img));

    }

    @Event({R.id.left_imageview})
    private void onClickk(View view) {

        switch (view.getId()) {
            case R.id.left_imageview:
                finish();
                break;
        }
    }
}
